const getDataValue = require('../common/getDataValue');
const Dealer = require('../model/Dealer/Dealer');

module.exports = {
    getProfile: async (ctx) => {
        const dealer =  getDataValue(await Dealer.findOne({
            where: {
                id: 1
            }
        }))
        console.log(dealer)
        ctx.json({
            statusCode: 200,
            msg: dealer
        })
    },
    changeProfile: async (ctx) => {},
    getDealerDeal: async (ctx) => {},
    putDealerDeal: async (ctx) => {},
    changeDealerDeal: async (ctx) => {},
};